function Mosque_Add() {
	this.init = function() {
		document.getElementById('mosque_add_clear').addEventListener('click', this.clear);
		document.getElementById('mosque_add_submit').addEventListener('click', this.submit);
	}
	
	this.clear = function() {
		document.getElementById('mosque_add_name').value = "";
		document.getElementById('mosque_add_address').value = "";
	}
	
	this.submit = function() {
		alert("coucou");
	}
}

var ma = new Mosque_Add();
ma.init();